<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!-- 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/dtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="./js/dtree.js"></script>
<script type="text/javascript" language="javascript">
<!--
	function showHidden(id){
		var obj = document.getElementById(id);
		if(obj.style.display == "none"){
			document.getElementById(id).style.display = "block";
		}else{
			document.getElementById(id).style.display = "none";
		}
	}
	
	function selectBox(id){
		if(id == 1){
			document.getElementById("nEamilFrame").src = "./internalMailbox.do?action=internalInbox";
		}else if(id == 2){
			document.getElementById("nEamilFrame").src = "./internalMailbox.do?action=internalOutbox";
		}else if(id == 3){
			document.getElementById("nEamilFrame").src = "./internalMailbox.do?action=internalWastebox";
		}
	}
	
	function initPage(){
		if("<c:out value='${result}'/>" == '1'){
			alert("发送成功！");
		}
	
		var sign = "<c:out value='${sign}'/>";
		var url = "./internalMailbox.do?action=internalInbox";
		if(sign == '1'){
			url = "./internalMailbox.do?action=internalInbox";//收件箱
		}else if(sign == '2'){
			url = "./internalMailbox.do?action=internalOutbox";//发件箱
		}else if(sign == '3'){
			url = "./internalMailbox.do?action=internalWastebox";//废件箱
		}
		document.getElementById("nEamilFrame").src = url;
	}
-->
</script>
</head>
<body onload="initPage()">
	<table cellpadding="0" cellspacing="0" class="table_frame" height="99%" style="width:expression(document.body.clientWidth); ">
		<tr>
			<td valign="top" class="dept_td_line" style="width: 120px;text-align: center;">
				<div class="dept_tree_title" style="width: 120px;"></div><br>
				<div class="mail_tree">
				<a href="javascript:selectBox(1)" class="" hidefocus="true">收件箱</a>
				<a href="javascript:selectBox(2)" class="" hidefocus="true">发件箱</a>
				<a href="javascript:selectBox(3)" class="" hidefocus="true">废件箱</a>
				</div>
			</td>
			<td width="10"></td>
			<td valign="top">
				<iframe src="./internalMailbox.do?action=internalInbox&result=${result}" id="nEamilFrame" name="nEamilFrame" frameborder="2" scrolling="no" width="100%" 
					onload="this.height=nEamilFrame.document.body.scrollHeight;this.width=nEamilFrame.document.body.scrollWidth;"></iframe>
			</td>
		</tr>
	</table>	
</body>
</html>